package com.qzsoft.system.modules.permission.rolebusiness.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qzsoft.system.modules.permission.dept.dto.SysDeptDTO;
import com.qzsoft.system.modules.permission.rolebusiness.dto.SysUserRoleBusinessDTO;
import com.qzsoft.system.modules.permission.rolebusiness.dto.SysUserRoleBusinessVo;
import com.qzsoft.system.modules.permission.rolebusiness.entity.SysRoleBusinessEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务角色(审批角色)(SysRoleBusiness)表数据库访问层
 *
 * @author lihuajun
 * @since 2020-09-18 10:13:21
 */
@Mapper
public interface SysRoleBusinessMapper extends BaseMapper<SysRoleBusinessEntity> {

    List<SysDeptDTO> selectDeptList(@Param("pid") String pid);

    List<SysUserRoleBusinessDTO> getUserByRoleAndDept(String roleBusinessId, String deptId);


    List<SysUserRoleBusinessVo> queryUserRoleBusinessListByUserId(Long id);

    List<SysDeptDTO> getUserByQueryKey(@Param("queryKey")String  queryKey);


}